package com.moneylee.xdstudy.service.impl;

import com.moneylee.xdstudy.domain.Video;
import com.moneylee.xdstudy.mapper.VideoMapper;
import com.moneylee.xdstudy.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className: VideoServiceImpl
 * @Description: TODO
 * @Author moneylee
 * @Date 2020-06-30 16:08
 * @Version 1.0
 **/
@Service
public class VideoServiceImpl implements VideoService {

    @Autowired
    private VideoMapper videoMapper;

    @Override
    public List<Video> listVideo() {
        List<Video> videos = videoMapper.listVideo();
        return videos;
    }
}
